Skip to content

Fix deploy workflow failure when GitHub Pages is not pre-enabled - #2

Open
essajassim90-arch with Copilot wants to merge 4 commits into
mainfrom
copilot/fix-deploy-github-actions-job
Open

Fix deploy workflow failure when GitHub Pages is not pre-enabled#2
essajassim90-arch with Copilot wants to merge 4 commits into
mainfrom
copilot/fix-deploy-github-actions-job

Conversation

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

The deploy GitHub Actions job failed at actions/configure-pages because the repository did not yet have a Pages site configured. This change updates the workflow to enable Pages during setup instead of assuming prior manual configuration.

  • Root cause addressed

    • actions/configure-pages@v5 returned Not Found for the Pages site API when Pages had not been initialized for the repo.
  • Workflow change

    • Updated .github/workflows/static.yml to pass enablement: true to actions/configure-pages@v5.
    • This makes the deploy path resilient for first-time or reset Pages configurations.
  • Relevant diff

    - name: Setup Pages
      uses: actions/configure-pages@v5
      with:
        enablement: true

Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Fix deploy workflow failure when GitHub Pages is not pre-enabled Jul 10, 2026
Copilot AI requested a review from essajassim90-arch July 10, 2026 20:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables GitHub Pages automatically during deployment setup, preventing first-time configuration failures.

Changes:

  • Adds enablement: true to actions/configure-pages@v5.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@essajassim90-arch essajassim90-arch left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@essajassim90-arch essajassim90-arch left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot important fix

@essajassim90-arch
essajassim90-arch marked this pull request as ready for review July 14, 2026 09:03
@essajassim90-arch

Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts on this branch.

1 similar comment
@essajassim90-arch

Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts on this branch.

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

@copilot important fix

Addressed in 4e29f4a.

The fix now targets the active Pages workflow (.github/workflows/deploy.yml) and updates the Pages artifact action to a fully pinned release so the deploy job is no longer blocked by the repository’s action-pinning policy.

…thub-actions-job

# Conflicts:
#	.github/workflows/deploy.yml

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts on this branch.

Addressed in 33d84bb.

The branch has been merged with main, the deploy.yml conflict is resolved, and the workflow now keeps both fixes: enablement: true for configure-pages and the fully pinned upload-pages-artifact action.

@copilot resolve the merge conflicts on this branch.

Addressed in 33d84bb.

The branch has been merged with main, the deploy.yml conflict is resolved, and the workflow now keeps both fixes: enablement: true for configure-pages and the fully pinned upload-pages-artifact action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants